package Thread.Thread03;

public class ThreadTest {
    public static void main(String[] args) {
        //1、创建一个账户对象代表俩个人的共享账户
        Account account = new Account(100000,"ICBC-110");
        //创建俩个线程，分别代表小明和小红
        new DrawThread(account,"小明").start();//小明
        new DrawThread(account,"小红").start();//小红

        Account account1 = new Account(100000,"ICBC-112");
        //创建俩个线程，分别代表小明和小红
        new DrawThread(account1,"小黑").start();//小黑
        new DrawThread(account1,"小白").start();//小白



    }
}
